package consts

import (
	"time"

	"gorm.io/gorm"
)

var ERROR_NOT_FOUND = gorm.ErrRecordNotFound

const (
	GENDER_MAN = iota + 1
	GENDER_WOMAN
)

const (
	PageSize      = 10
	DefaultPage   = 1
	DefaultOffSet = 0
)

type ComponentModel struct {
	Id          int64     `db:"id" gorm:"column:id"`
	Name        string    `db:"name" gorm:"column:name"`               // 组件名称
	Description string    `db:"description" gorm:"column:description"` // 组件描述
	Category    string    `db:"category"`                              // 组件分类
	Icon        string    `db:"icon"`                                  // 组件图标
	Tags        []string  `db:"tags"`                                  // 组件标签
	CreateTime  time.Time `db:"create_time"`
	UpdateTime  time.Time `db:"update_time"`
}
